package entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the PARTICIPE database table.
 * 
 */
@Entity
public class Participe implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private ParticipePK id;

	private String presence;

	//bi-directional many-to-one association to Electeur
	@ManyToOne
	@JoinColumn(name="REF_IDELECTEUR", updatable=false, insertable=false)
//        @PrimaryKeyJoinColumn(name="REF_IDELECTEUR")
	private Electeur electeur;

	//bi-directional many-to-one association to Election
	@ManyToOne
	@JoinColumn(name="REF_IDELECTION", updatable=false, insertable=false)
//        @PrimaryKeyJoinColumn(name="REF_IDELECTION")
	private Election election;

	public Participe() {
	}

	public ParticipePK getId() {
		return this.id;
	}

	public void setId(ParticipePK id) {
		this.id = id;
	}

	public String getPresence() {
		return this.presence;
	}

	public void setPresence(String presence) {
		this.presence = presence;
	}

	public Electeur getElecteur() {
		return this.electeur;
	}

	public void setElecteur(Electeur electeur) {
		this.electeur = electeur;
	}

	public Election getElection() {
		return this.election;
	}

	public void setElection(Election election) {
		this.election = election;
	}

}